package entity

import (
	"time"

	"gorm.io/gorm"
	"shqsoft.cn/pas3ui/base"
)

//IndiAccoFlowCh
type IndiAccoFlowCh struct {
	CUID int       `gorm:"column:CUID;primary_key;"`
	CUNM string    `gorm:"column:CUNM"`
	UTNM string    `gorm:"column:UTNM"`
	OPDT time.Time `gorm:"column:OPDT"`
	IDNO string    `gorm:"column:IDNO"`
}

//TableName
func (IndiAccoFlowCh) TableName() string {
	return "V_INDI_ACCO_FLOW"
}
func (i *IndiAccoFlowCh) AfterFind(tx *gorm.DB) (err error) {
	i.IDNO = base.IndoTM(i.IDNO)
	return
}
func IndiAccoFlowChEF() base.EntityFunc {
	return func() interface{} {
		entity := IndiAccoFlowCh{}
		return &entity
	}
}
func IndiAccoFlowChESF() base.EntitiesFunc {
	return func() interface{} {
		var entities []IndiAccoFlowCh
		return &entities
	}
}

func init() {
	base.DaoPoolObj.Put("IndiAccoFlowCh", base.NewDefaultDao(IndiAccoFlowChEF(), IndiAccoFlowChESF(), nil, "ch"))
}
